/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Animation;

import java.util.ArrayList;
import javax.media.opengl.GL;

/**
 *
 * @author Kevin
 */
public class Die extends Square{

    ArrayList<Circle> dots;
    int numDots;
    int number;
    double[] dotColor;

    public Die(String type, int topLeftX, int topLeftY, int size, int number)
    {
        super(type, topLeftX, topLeftY, size);
        this.number = number;
        numDots = number;
        dotColor = new double[3];
        dotColor[0] = 0f;
        dotColor[1] = 0f;
        dotColor[2] = 0f;
        dots = new ArrayList<Circle>();
 
        while(numDots > 0)
        {
            dots.add(new Piece(dotColor));
            numDots --;
        }
    }

    public void drawDots(GL gl)
    {
        for(int i = 0; i < dots.size(); i ++)
        {
            switch(i + 1)
            {
                case 1:
                    dots.get(i).drawCircle(gl, 50, 50, 20);
                break;

                case 2:
                    dots.get(i).drawCircle(gl, 50, 50, 20);
                    dots.get(i).drawCircle(gl, 20, 50, 20);
                break;

                case 3:
                break;

                case 4:
                 break;

                case 5:
                break;

                case 6:
                break;
                
            }
        }
    }

    public int getNumber()
    {
        return number;
    }


}
